<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>供应商介绍</title>
    <link rel="stylesheet" href="__PUBLIC__/weui/dist/style/weui.css"/>
    <link rel="stylesheet" href="__PUBLIC__/weui/dist/example/example.css"/>
    <script src="__PUBLIC__/weui/dist/example/zepto.min.js"></script>
    <style>
        .bt{
            border-bottom:2px solid green;
        }
        .p1{
            margin-bottom : 8px;
            color: #757575;
            font-size: 0.9em;
        }
        .h4{
            color: #202020;
            font-size: 1.2em;
            font-style: normal;
            word-break: break-all;
        }
        .hotSearch {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 30px;
            background-color: rgba(255,255,255,0.85);
            color: #898989;
            padding: 12px 15px;
            border-top: 1px solid #e9e9e9;
            font-size: 1.1em;
            z-index: 999;
            text-align: center;
        }
        #hotSearch {
            width: 100%;
            display: block;
            text-align: left;
            overflow-x: scroll;
            white-space: nowrap;
            /* text-overflow: ellipsis; */
            /* -o-text-overflow: ellipsis; */
        }
        .hotSearch a {
            color: #4192e3;
            padding: 0 5px;
        }
        .bd-left{
            float : left;
        }
        .bd-right{
            float : right;
        }
        .bd{
            border : 1px solid #1AAD19;
            background : white;
            color : #1AAD19;
        }

    </style>
</head>
<body>
<div class="page__bd">
    <article class="weui-article">
        <section>
            <h2 class="title"><b><?php echo $info['qc']; ?></b></h2>
            <!--<div >-->
                <!--<img src="__PUBLIC__/images/atc.png" alt=""width="100%" height="80px">-->
            <!--</div>-->
            <section>
                <h3 class="bt"><b>公司简介 : </b></h3>
                <p style="text-indent:2em"><?php echo $info['gk']; ?></p>
                <!--<p>-->
                    <!--<img src="__PUBLIC__/images/atc1.jpg" alt=""><br>-->
                    <!--<img src="__PUBLIC__/images/atc2.jpg" alt=""><br>-->
                    <!--<img src="__PUBLIC__/images/atc3.jpg" alt="">-->
                <!--</p>-->
            </section>
            <section>
                <h3 class="bt"><b>基本情况 : </b></h3>
                <p>
                    <span>其他名称 : <?php echo $info['qtmc']; ?></span><br>
                    <span>企业性质 : <?php echo $info['qyxzmc']; ?></span><br>
                    <span>所属部门 : <?php echo $info['ssbm']; ?></span><br>
                    <span>工厂地址 : <?php echo $info['gcdz']; ?></span><br>
                    <span>企业电话 : <?php echo $info['dh']; ?></span><br>
                    <span>企业传真 : <?php echo $info['cz']; ?></span>
                </p>
            </section>
            <section>
                <h3 class="bt"><b>资质证书 : </b></h3>
                <div class="page__bd" style="margin-bottom:50px">
                    <?php foreach($info['qyzz'] as $k=>$v): ?>
                    <div class="weui-panel weui-panel_access">
                        <div class="weui-panel__bd">
                            <div class="weui-media-box weui-media-box_text">
                                <p class="weui-media-box__desc p1">认证名称 : <?php echo $v['rzmc']; ?></p>
                                <p class="weui-media-box__desc p1">证书覆盖的产品范围 : <?php echo $v['cpfw']; ?></p>
                                <p class="weui-media-box__desc p1">证书有效期 : <?php echo $v['yxq']; ?></p>
                                <p class="weui-media-box__desc p1">发证机构 : <?php echo $v['fzjg']; ?></p>
                                <p class="weui-media-box__desc p1">认证类型 : <?php echo $v['rzlx']; ?></p>
                            </div>
                        </div>
                    </div>
                    <?php endforeach; ?>
                </div>
            </section>
            <section>
                <h3 class="bt"><b>公司产品 : </b></h3>
                <div class="page__bd" style="margin-bottom:50px">
                    <?php foreach($info['cp'] as $k=>$v): ?>
                    <div class="weui-panel weui-panel_access">
                        <div class="weui-panel__bd">
                            <div class="weui-media-box weui-media-box_text">
                                <a href="{:U('detail',array('wzno'=>$v[wzno]))}" class="weui-media-box__title h4"><?php echo $v['wzmc']; ?></a>
                                <p class="weui-media-box__desc p1">型号 : 　　<span class="val"><?php echo $v['gg'][0]; ?></span></p>
                                <p class="weui-media-box__desc p1">质量等级 : <span class="val"><?php echo $v['gg'][1]; ?></span></p>
                                <p class="weui-media-box__desc p1">型号规格 : <span class="val"><?php echo $v['gg'][2]; ?></span></p>
                                <p class="weui-media-box__desc p1">所属分类 : <span class="val"><a href="#"><?php echo $v['flmc']; ?></a></span></p>
                            </div>
                        </div>
                    </div>
                    <?php endforeach; ?>
                </div>
            </section>
            <section>
                <h3 class="bt"><b>联系方式 : </b></h3>
                <p>
                    <span>联系人姓名 : <?php echo $info['lxrxm']; ?></span><br>
                    <span>联系人电话 ：<?php echo $info['lxrsj']; ?></span><br>
                    <span>邮箱 ：<?php echo $info['lxrdzyx']; ?></span><br>
                    <span>质量部门联系人姓名 : <?php echo $info['zlbmfzrxm']; ?></span><br>
                    <span>质量部门联系人电话 ：<?php echo $info['zlbmfzrsj']; ?></span><br>
                    <span>邮箱 ：<?php echo $info['zlbmfzrdzyx']; ?></span><br>
                    <span>销售部门联系人姓名 : <?php echo $info['xsbmfzrxm']; ?></span><br>
                    <span>销售联系人电话 ：<?php echo $info['xsbmfzrsj']; ?></span><br>
                    <span>邮箱 ：<?php echo $info['xsbmfzrdzyx']; ?></span><br>
                </p>
            </section>
        </section>
    </article>
</div>
</body>
<script>
    var bd_list = '';  //初始化比对的产品id
    $('.bd').click(function(){
        var gid = $(this).attr('gid');
        if($(this).html() == ' + 比对 '){
            if(bd_list == ''){  //如果还没有比对ID
                $(this).html('已加入比对,点击取消');
                bd_list = gid;
            }else{
                bd_list = bd_list + ','+ gid;
                location.href = '__CONTROLLER__/juxtapose/gid/'+bd_list;
            }
        }else{
            bd_list =  '';
            $(this).html(' + 比对 ')
        }

    })
</script>
</html>